package com.xu.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 站点信息
 * </p>
 *
 * @author xu
 * @since 2022-07-27
 */
@Getter
@Setter
@TableName("station")
public class StationEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 站点ID
     */
    @TableId(value = "station_id", type = IdType.AUTO)
    private Long stationId;

    /**
     * 建站日期
     */
    @TableField("create_station_date")
    private Date createStationDate;

    /**
     * 访客数量
     */
    @TableField("visitor_num")
    private Integer visitorNum;

    /**
     * 友链数量
     */
    @TableField("friend_num")
    private Integer friendNum;

    /**
     * 注册数量
     */
    @TableField("register_num")
    private Integer registerNum;

    /**
     * 留言总数
     */
    @TableField("comment_num")
    private Integer commentNum;

    /**
     * 文章总数
     */
    @TableField("article_num")
    private Integer articleNum;
}
